import requests
from bs4 import BeautifulSoup


hd = {"User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/107.0.0.0"}

r = requests.get("https://www.meishij.net/fenlei/xiafancai/",headers=hd)
r.encoding="UTF-8"

#获取页面信息
content = r.text


soup =BeautifulSoup(content,'html.parser')
# 找到所有信息对应的a标签;


nowplaying_movie_list = soup.find_all('a',class_='list_s2_item_info')

print(nowplaying_movie_list,"ssss")

# 存储所有信息
movies_info=[]
# 依次遍历每一个li标签， 再次提取需要的信息
for item in nowplaying_movie_list:
	nowplaying_movie_dict = {}

	ss=item.strong.string
	print(ss)
	# 将获取的添加到列表中;
	movies_info.append(ss)

print(movies_info)